package com.baimawangzi.recovery.service.impl;

import com.baimawangzi.recovery.bean.Admin;
import com.baimawangzi.recovery.dao.AdminDao;
import com.baimawangzi.recovery.dao.impl.AdminDaoImpl;
import com.baimawangzi.recovery.service.AdminService;

import java.util.List;

public class AdminServiceImpl implements AdminService {
    private AdminDao adminDao=new AdminDaoImpl();
    @Override
    public Admin getLogig(String loginname, String pwd) {
        List<Admin> admins = adminDao.getLogin(loginname, pwd);
        if(null!=admins && admins.size()>0){
            return admins.get(0);
        }
        return null;
    }
}
